﻿using System;
using System.Net;
using System.Xml.Linq;

namespace ArmoryBrowser.Entities
{
    public class Armor : BaseStat
    {
        #region Fields
        private string _percentField;
        private string _petBonusField;
        #endregion
        #region Properties
        public string Percent
        {
            get
            {
                return this._percentField;
            }
            set
            {
                this._percentField = value;
            }
        }

        public string PetBonus
        {
            get
            {
                return this._petBonusField;
            }
            set
            {
                this._petBonusField = value;
            }
        }
        #endregion
        #region Constructor
        public Armor(XElement element) : base(element)
        {
            Percent = element.GetAttributeValue("percent");
            PetBonus = element.GetAttributeValue("petBonus");
        }
        #endregion
    }
}
